package com.ash.javaconfig;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
//        applicationContext.register(AppConfig.class);
////        applicationContext.addBeanFactoryPostProcessor(new LubanBeanFactoryPostProcessor());

//        applicationContext.refresh();

        System.out.println(applicationContext.getId()+"============");

        OrderService userService = applicationContext.getBean(OrderService.class);

        System.out.println(userService.getUserService()+"===");

    }
}
